﻿using MediatR;
using Process.Domain;
using Process.ErrorCode;

namespace Process.API.Application.Command.Show
{
    public class ProductionOrdersCommand : IRequest<APIResult<APIPaging<List<ProductionOrders>>>>
    {
        /// <summary>
        /// 工单编号
        /// </summary>
        public string? ProductionOrdersCode { get; set; }
        /// <summary>
        /// 工单名称
        /// </summary>
        public string? ProductionOrdersName { get; set; }


        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductName { get; set; }
        /// <summary>
        /// 状态(0是待排产
        ///1是未开始
        ///2是进行中
        ///3是已完成
        ///4是已暂停
        ///5是已关闭)
        /// </summary>
        public int? State { get; set; }

        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 15;
    }
}
